
create sequence "Reasons_ReasonsId_seq";


CREATE TABLE "Reasons"
(
    "ReasonsId" int NOT NULL DEFAULT nextval('"Reasons_ReasonsId_seq"'::regclass),
    "Reason" character varying(255),
    "Active" boolean DEFAULT true,
    "CreatedBy" int NOT NULL,
    "CreatedDate" timestamp without time zone NOT NULL,
    "ModifiedBy" int,
    "ModifiedDate" timestamp without time zone,
    CONSTRAINT "Reasons_pkey" PRIMARY KEY ("ReasonsId"),
    CONSTRAINT "FK_Reasons_CreatedBy" FOREIGN KEY ("CreatedBy")
        REFERENCES public."Account" ("AccountId") MATCH SIMPLE
        ON UPDATE NO ACTION
        ON DELETE NO ACTION,
    CONSTRAINT "FK_Reasons_ModifiedBy" FOREIGN KEY ("ModifiedBy")
        REFERENCES public."Account" ("AccountId") MATCH SIMPLE
        ON UPDATE NO ACTION
        ON DELETE NO ACTION
);

---------------------------------------------------------------------------------------------------------------------


insert into "LogType" values(83, 'Reasons', true)



